graphing cosine with a reflection